dimension check